home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / dvcron10.zip / PIF.H < prev   
Text File  |  1991-12-18  |  4KB  |  87 lines

  1. /*
  2.   copyright (c) 1991 -- kyle a. york
  3.   use / copy / modify at will -- see CRON.DOC for details
  4.   this is from Ralph Brown's interrupt list
  5. */
  6.  
  7. #define uchar unsigned char
  8. #define byte uchar
  9. #define word unsigned int
  10.  
  11. /*
  12. Format of .PIF/.DVP file:
  13. */
  14. typedef struct {
  15.   word rsvd;                 /* reserved. always 0 */
  16.   char title[30];            /* blank-padded program title */
  17.   word maxmem;               /* maximum memory to allocate */
  18.   word minmem;               /* minimum memory to allocate */
  19.   char path[64];             /* full path to program */
  20.   char drive;                /* default drive */
  21.   char defaultdir[64];       /* default directory */
  22.   char parameters[64];       /* program parameters */
  23.   byte init_screen_mode;     /* initial screen mode 0-7 */
  24.   byte text_page_ct;         /* # of text pages */
  25.   byte int_start;            /* 1st int # to save */
  26.   byte int_end;              /* last int # to save */
  27.   byte maxht;                /* max # rows */
  28.   byte maxwd;                /* max # columns */
  29.   byte row_start;            /* initial row for window */
  30.   byte col_start;            /* initial col for window */
  31.   word sysmem;               /* # of K of system memory */
  32.   char sharedprog[64];       /* shared program name */
  33.   char shareddata[64];       /* shared program data file */
  34.   byte flags1;               /* bit     def
  35.                                  7   writes text directly to screen
  36.                                  6   runs in foreground only
  37.                                  5   uses math coprocessor
  38.                                  4   accesses system keyboard buffer directly
  39.                                  3-1 reserved (0)
  40.                                  0   swappable */
  41.   byte flags2;               /* bit     def
  42.                                  6   uses cmd-line parameters
  43.                                  5   swaps interrupt vectors */
  44. /* PIF file ends here, DVP begins */
  45.   char  openkeys[2];         /* keys used on open menu */
  46.   word  scriptbufsize;
  47.   word  keytestgive;        /* automatically give-up CPU after this many
  48.                                tests for keyboard input in one clock tick
  49.                                default = 0 (never) */
  50.   byte  usesowncolors;      /* 0 = no, else yes */
  51.   byte  apswappable;        /* 0 = no, else yes */
  52.   byte  rsvd1[3];           /* reserved. should be 0 */
  53.   byte  autocloseonexit;    /* 0 = no, else yes */
  54.   byte  floppyreqd;         /* 0 = no, else yes */
  55. /* ---information unique to DESQview 2.0+--- */
  56.   byte  version;            /* 0=1.2, 1=2.0, 2=2.2 */
  57.   byte  rsvd2;              /* reserved. should be 0 */
  58.   byte  initrowsphysical;   /* # of rows in physical window */
  59.   byte  initcolsphysical;   /* # of columns in physical window */
  60.   word  maxexpanded;        /* max amount of expanded memory allowed */
  61.   byte  flags3;             /*
  62.                 bit 7: automatically assign window position
  63.                 bit 5: maximum memory value has been specified
  64.                 bit 4: disallow "Close" command
  65.                 bit 3: foreground-only when doing graphics
  66.                 bit 2: don't virtualize
  67.                 bit 1: ??? set by DV 2.31 when "Runs in Background" = "D" */
  68.   byte  keyconflict;         /* kbd conflict level */
  69.   byte  gfxpages;            /* # of graphics pages used */
  70.   word  extrasysmem;
  71.   byte  initscreenmode;      /* (FFh = default) (overrides offset E5h) */
  72. /* ---information unique to DESQview 2.2+--- */
  73.   byte  serialportsused;    /* ff=all */
  74.   byte  flags4; /*
  75.                 bit 7: automatically close application on exit if .COM or .EXE
  76.                         specified
  77.                 bit 6: swappable if not using serial ports
  78.                 bit 5: start program with window hidden (v2.26+)
  79.                 bit 4: start program in background (v2.26+)
  80.                 bit 3: virtualize text
  81.                 bit 2: virtualize graphics
  82.                 bit 1: share CPU when foreground
  83.                 bit 0: share EGA when foreground and zoomed */
  84.   byte protectionlevel;
  85.   byte rsvd4[19];
  86. } DVPtype;
  87.